//
//  UFOYZXherolistTableView.m
//  unrivalledForUniverse
//
//  Created by dllo on 16/1/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "UFOYZXherolistTableView.h"

@implementation UFOYZXherolistTableView

- (void)dealloc
{
    [_nameL release];
    [_priceV release];
    [_peopleL release];
    [super dealloc];
}

- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubviews];
    }
    return self;
}

#pragma 创建背景图片
- (void)createSubviews
{
    
    self.nameL = [[UILabel alloc] init];
    self.nameL.font = [UIFont systemFontOfSize:15.0];
    self.nameL.textColor = [UIColor colorWithRed:0.307 green:0.000 blue:0.307 alpha:1.000];
    self.nameL.numberOfLines = 0;
    [self addSubview:self.nameL];
    [self.nameL release];
    
    self.peopleL = [[UILabel alloc] init];
    self.peopleL.textColor = [UIColor colorWithRed:1.000 green:0.188 blue:0.315 alpha:1.000];
    self.peopleL.font = [UIFont systemFontOfSize:13.0];
    [self addSubview:self.peopleL];
    [self.peopleL release];
    
    self.priceV = [[UIImageView alloc] init];
    [self addSubview:self.priceV];
    [self.priceV release];
    
}

#pragma 创建背景图片坐标
- (void)layoutSubviews {
    
    [super layoutSubviews];
    self.nameL.frame = CGRectMake(120 *SCREENWIDTH / WIDTHSIXP, 10 *SCREENHEIGHT / HEIGHTSIXP, 240 * SCREENWIDTH / WIDTHSIXP , 60 * SCREENHEIGHT / HEIGHTSIXP);
    self.priceV.frame = CGRectMake(10 * SCREENWIDTH / WIDTHSIXP, 10 *SCREENHEIGHT / HEIGHTSIXP , 100 *SCREENWIDTH / WIDTHSIXP, 80 *SCREENHEIGHT / HEIGHTSIXP);
    self.peopleL.frame = CGRectMake(120 *SCREENWIDTH /WIDTHSIXP, 70 *SCREENHEIGHT / HEIGHTSIXP, 200 *SCREENWIDTH / WIDTHSIXP, 20 *SCREENHEIGHT / HEIGHTSIXP);
    
}

@end
